<!--
 * @Author: 码上talk|RC
 * @Date: 2020-10-10 17:12:19
 * @LastEditTime: 2020-11-19 11:30:34
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /tacomall-merchant/src/components/img-video-uploader/index.vue
 * @微信:  13680065830
 * @邮箱:  3189482282@qq.com
 * @oops: Just do what I think it is right
-->
<template>
    <div class="img-video-uploader">
        <div class="u-list" v-if="max > 1">
            <div class="l-item">
                <div class="i-img">
                    <img
                        src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg"
                        alt
                    />
                </div>
                <div class="i-btn"></div>
            </div>
        </div>
        <div class="u-btn">
            <i class="iconfont icon-shangchuan"></i>
        </div>
    </div>
</template>

<script>
export default {
    props: ['max']
}
</script>

<style lang="less">
.img-video-uploader {
    display: flex;
    .u-list {
        display: flex;
        align-items: center;
        .l-item {
            width: 100px;
            height: 100px;
            img {
                width: 100%;
                height: 100%;
            }
            &:hover {
                cursor: pointer;
            }
        }
    }
    .u-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        box-sizing: border-box;
        border: 1px dashed #ebeef5;
        i {
            font-size: 40px;
        }
        &:hover {
            cursor: pointer;
        }
    }
}
</style>